package org.alex.sample.service;

import java.util.List;

import org.alex.sample.model.Subject;
import org.alex.sample.model.User;
import org.alex.sample.page.PagerModel;

public interface SubjectService {

	public List<Subject> findAllSubject() throws Exception;
	
	public void createSubject(Subject subject) throws Exception;
	
	public void editSubject(Subject subject) throws Exception;
	
	public void deleteSubject(Integer sub_id) throws Exception;
	
	public Subject findSubjectById(Integer sub_id) throws Exception;
	
	public PagerModel<Subject> findAllByPage() throws Exception;
	
	public List<User> getAllUser() throws Exception;
	
	public List<String> getSubjectUser(Integer subjectId) throws Exception;
	
	public void saveSubjectUser(List<String> checkedUserId, Integer subjectId) throws Exception;
	
}
